home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 22
/
CU Amiga Magazine's Super CD-ROM 22 (1998)(EMAP Images)(GB)[!][issue 1998-05].iso
/
PowerPC
/
Programming
/
PPCsiod
/
SIOD
/
Char.scm
next >
Wrap
Text File
|
1993-07-09
|
996b
|
40 lines
(define (char<? x y)
(< (char-cmp x y) 0))
(define (char>? x y)
(> (char-cmp x y) 0))
(define (char=? x y)
(= (char-cmp x y) 0))
(define (char<=? x y)
(<= (char-cmp x y) 0))
(define (char>=? x y)
(>= (char-cmp x y) 0))
(define (char-ci<? x y)
(< (char-cmp (char-downcase x) (char-downcase y)) 0))
(define (char-ci>? x y)
(> (char-cmp (char-downcase x) (char-downcase y)) 0))
(define (char-ci=? x y)
(= (char-cmp (char-downcase x) (char-downcase y)) 0))
(define (char-ci<=? x y)
(<= (char-cmp (char-downcase x) (char-downcase y)) 0))
(define (char-ci>=? x y)
(>= (char-cmp (char-downcase x) (char-downcase y)) 0))
(define (char-upper-case? x)
(and (char>=? x #\A) (char<=? x #\Z)))
(define (char-lower-case? x)
(and (char>=? x #\a) (char<=? x #\z)))
(define (char-digit? x)
(and (char>=? x #\0) (char<=? x #\9)))